package com.groupbuying.provider.dto.convert;

import com.groupbuying.provider.domain.StoreMainInfoDO;
import com.groupbuying.provider.dto.WithdrawStoreDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Author: wenguoqiang
 * @Email wguoqiango@163.com
 * @Date: 2020/3/8 0008 下午 11:44
 * @Des
 */
@Mapper
public interface WithdrawStoreConvert {

    WithdrawStoreConvert MAPPER = Mappers.getMapper(WithdrawStoreConvert.class);

    @Mapping(target = "storeUuid", source = "storeMainInfoDO.uuid")
    @Mapping(target = "storeName", source = "storeMainInfoDO.storename")
    @Mapping(target = "ysStoreCode", source = "storeMainInfoDO.ysusercode")
    WithdrawStoreDTO DOToDTO(StoreMainInfoDO storeMainInfoDO);

}
